home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2001 #9 / CD 9 (Black) - 2001.iso / Pinball / System / Editor.u / ScriptText4.TextBuffer < prev    next >
Unknown  |  2001-03-07  |  3.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 5b 34 2f 2f 3d 3d 3d 3d |........|[4//====|
|00000010| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000020| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000030| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000040| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000050| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 0d 0a 2f 2f 20 4c 69 |========|=..// Li|
|00000060| 6e 65 61 72 53 74 61 69 | 72 42 75 69 6c 64 65 72 |nearStai|rBuilder|
|00000070| 3a 20 42 75 69 6c 64 73 | 20 61 20 4c 69 6e 65 61 |: Builds| a Linea|
|00000080| 72 20 53 74 61 69 72 63 | 61 73 65 2e 0d 0a 2f 2f |r Stairc|ase...//|
|00000090| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 0d 0a 63 |========|=====..c|
|000000e0| 6c 61 73 73 20 4c 69 6e | 65 61 72 53 74 61 69 72 |lass Lin|earStair|
|000000f0| 42 75 69 6c 64 65 72 0d | 0a 09 65 78 70 61 6e 64 |Builder.|..expand|
|00000100| 73 20 42 72 75 73 68 42 | 75 69 6c 64 65 72 3b 0d |s BrushB|uilder;.|
|00000110| 0a 0d 0a 2f 2f 23 69 66 | 20 31 20 2f 2f 55 32 45 |...//#if| 1 //U2E|
|00000120| 64 0d 0a 0d 0a 76 61 72 | 28 29 20 69 6e 74 20 53 |d....var|() int S|
|00000130| 74 65 70 4c 65 6e 67 74 | 68 2c 20 53 74 65 70 48 |tepLengt|h, StepH|
|00000140| 65 69 67 68 74 2c 20 53 | 74 65 70 57 69 64 74 68 |eight, S|tepWidth|
|00000150| 2c 20 4e 75 6d 53 74 65 | 70 73 3b 0d 0a 76 61 72 |, NumSte|ps;..var|
|00000160| 28 29 20 6e 61 6d 65 20 | 47 72 6f 75 70 4e 61 6d |() name |GroupNam|
|00000170| 65 3b 0d 0a 0d 0a 65 76 | 65 6e 74 20 62 6f 6f 6c |e;....ev|ent bool|
|00000180| 20 42 75 69 6c 64 28 29 | 0d 0a 7b 0d 0a 09 6c 6f | Build()|..{...lo|
|00000190| 63 61 6c 20 69 6e 74 20 | 69 2c 20 4c 61 73 74 49 |cal int |i, LastI|
|000001a0| 64 78 2c 20 43 75 72 72 | 65 6e 74 58 2c 20 43 75 |dx, Curr|entX, Cu|
|000001b0| 72 72 65 6e 74 59 2c 20 | 43 75 72 72 65 6e 74 5a |rrentY, |CurrentZ|
|000001c0| 3b 0d 0a 0d 0a 09 2f 2f | 20 43 68 65 63 6b 20 66 |;.....//| Check f|
|000001d0| 6f 72 20 62 61 64 20 69 | 6e 70 75 74 2e 0d 0a 09 |or bad i|nput....|
|000001e0| 69 66 28 20 53 74 65 70 | 4c 65 6e 67 74 68 3c 3d |if( Step|Length<=|
|000001f0| 30 20 7c 7c 20 53 74 65 | 70 48 65 69 67 68 74 3c |0 || Ste|pHeight<|
|00000200| 3d 30 20 7c 7c 20 53 74 | 65 70 57 69 64 74 68 3c |=0 || St|epWidth<|
|00000210| 3d 30 20 29 0d 0a 09 09 | 72 65 74 75 72 6e 20 42 |=0 )....|return B|
|00000220| 61 64 50 61 72 61 6d 65 | 74 65 72 73 28 29 3b 0d |adParame|ters();.|
|00000230| 0a 09 69 66 28 20 4e 75 | 6d 73 74 65 70 73 3c 3d |..if( Nu|msteps<=|
|00000240| 31 20 7c 7c 20 4e 75 6d | 73 74 65 70 73 3e 34 35 |1 || Num|steps>45|
|00000250| 20 29 0d 0a 09 09 72 65 | 74 75 72 6e 20 42 61 64 | )....re|turn Bad|
|00000260| 50 61 72 61 6d 65 74 65 | 72 73 28 22 4e 75 6d 53 |Paramete|rs("NumS|
|00000270| 74 65 70 73 20 6d 75 73 | 74 20 62 65 20 67 72 65 |teps mus|t be gre|
|00000280| 61 74 65 72 20 74 68 61 | 6e 20 31 20 61 6e 64 20 |ater tha|n 1 and |
|00000290| 6c 65 73 73 20 74 68 61 | 6e 20 34 35 2e 22 29 3b |less tha|n 45.");|
|000002a0| 0d 0a 0d 0a 09 2f 2f 0d | 0a 09 2f 2f 20 42 75 69 |.....//.|..// Bui|
|000002b0| 6c 64 20 74 68 65 20 62 | 72 75 73 68 2e 0d 0a 09 |ld the b|rush....|
|000002c0| 2f 2f 0d 0a 09 42 65 67 | 69 6e 42 72 75 73 68 28 |//...Beg|inBrush(|
|000002d0| 20 66 61 6c 73 65 2c 20 | 47 72 6f 75 70 4e 61 6d | false, |GroupNam|
|000002e0| 65 20 29 3b 0d 0a 0d 0a | 09 43 75 72 72 65 6e 74 |e );....|.Current|
|000002f0| 58 20 3d 20 30 3b 0d 0a | 09 43 75 72 72 65 6e 74 |X = 0;..|.Current|
|00000300| 59 20 3d 20 30 3b 0d 0a | 09 43 75 72 72 65 6e 74 |Y = 0;..|.Current|
|00000310| 5a 20 3d 20 30 3b 0d 0a | 0d 0a 09 4c 61 73 74 49 |Z = 0;..|...LastI|
|00000320| 64 78 20 3d 20 47 65 74 | 56 65 72 74 65 78 43 6f |dx = Get|VertexCo|
|00000330| 75 6e 74 28 29 3b 0d 0a | 0d 0a 09 2f 2f 20 42 6f |unt();..|...// Bo|
|00000340| 74 74 6f 6d 20 70 6f 6c | 79 2e 0d 0a 09 56 65 72 |ttom pol|y....Ver|
|00000350| 74 65 78 33 66 28 20 30 | 2c 09 09 09 09 09 09 30 |tex3f( 0|,......0|
|00000360| 2c 09 09 09 2d 53 74 65 | 70 48 65 69 67 68 74 20 |,...-Ste|pHeight |
|00000370| 29 3b 0d 0a 09 56 65 72 | 74 65 78 33 66 28 20 30 |);...Ver|tex3f( 0|
|00000380| 2c 09 09 09 09 09 09 53 | 74 65 70 57 69 64 74 68 |,......S|tepWidth|
|00000390| 2c 09 2d 53 74 65 70 48 | 65 69 67 68 74 20 29 3b |,.-StepH|eight );|
|000003a0| 0d 0a 09 56 65 72 74 65 | 78 33 66 28 20 53 74 65 |...Verte|x3f( Ste|
|000003b0| 70 4c 65 6e 67 74 68 20 | 2a 20 4e 75 6d 53 74 65 |pLength |* NumSte|
|000003c0| 70 73 2c 09 53 74 65 70 | 57 69 64 74 68 2c 09 2d |ps,.Step|Width,.-|
|000003d0| 53 74 65 70 48 65 69 67 | 68 74 20 29 3b 0d 0a 09 |StepHeig|ht );...|
|000003e0| 56 65 72 74 65 78 33 66 | 28 20 53 74 65 70 4c 65 |Vertex3f|( StepLe|
|000003f0| 6e 67 74 68 20 2a 20 4e | 75 6d 53 74 65 70 73 2c |ngth * N|umSteps,|
|00000400| 09 30 2c 09 09 09 2d 53 | 74 65 70 48 65 69 67 68 |.0,...-S|tepHeigh|
|00000410| 74 20 29 3b 0d 0a 09 50 | 6f 6c 79 34 69 28 31 2c |t );...P|oly4i(1,|
|00000420| 20 30 2c 20 31 2c 20 32 | 2c 20 33 2c 20 27 42 61 | 0, 1, 2|, 3, 'Ba|
|00000430| 73 65 27 29 3b 0d 0a 09 | 4c 61 73 74 49 64 78 20 |se');...|LastIdx |
|00000440| 2b 3d 20 34 3b 0d 0a 0d | 0a 09 2f 2f 20 42 61 63 |+= 4;...|..// Bac|
|00000450| 6b 20 70 6f 6c 79 2e 0d | 0a 09 56 65 72 74 65 78 |k poly..|..Vertex|
|00000460| 33 66 28 20 53 74 65 70 | 4c 65 6e 67 74 68 20 2a |3f( Step|Length *|
|00000470| 20 4e 75 6d 53 74 65 70 | 73 2c 09 53 74 65 70 57 | NumStep|s,.StepW|
|00000480| 69 64 74 68 2c 09 2d 53 | 74 65 70 48 65 69 67 68 |idth,.-S|tepHeigh|
|00000490| 74 20 29 3b 0d 0a 09 56 | 65 72 74 65 78 33 66 28 |t );...V|ertex3f(|
|000004a0| 20 53 74 65 70 4c 65 6e | 67 74 68 20 2a 20 4e 75 | StepLen|gth * Nu|
|000004b0| 6d 53 74 65 70 73 2c 09 | 53 74 65 70 57 69 64 74 |mSteps,.|StepWidt|
|000004c0| 68 2c 09 53 74 65 70 48 | 65 69 67 68 74 20 2a 20 |h,.StepH|eight * |
|000004d0| 28 4e 75 6d 53 74 65 70 | 73 20 2d 20 31 29 29 3b |(NumStep|s - 1));|
|000004e0| 0d 0a 09 56 65 72 74 65 | 78 33 66 28 20 53 74 65 |...Verte|x3f( Ste|
|000004f0| 70 4c 65 6e 67 74 68 20 | 2a 20 4e 75 6d 53 74 65 |pLength |* NumSte|
|00000500| 70 73 2c 09 30 2c 09 09 | 09 53 74 65 70 48 65 69 |ps,.0,..|.StepHei|
|00000510| 67 68 74 20 2a 20 28 4e | 75 6d 53 74 65 70 73 20 |ght * (N|umSteps |
|00000520| 2d 20 31 29 20 29 3b 0d | 0a 09 56 65 72 74 65 78 |- 1) );.|..Vertex|
|00000530| 33 66 28 20 53 74 65 70 | 4c 65 6e 67 74 68 20 2a |3f( Step|Length *|
|00000540| 20 4e 75 6d 53 74 65 70 | 73 2c 09 30 2c 09 09 09 | NumStep|s,.0,...|
|00000550| 2d 53 74 65 70 48 65 69 | 67 68 74 20 29 3b 0d 0a |-StepHei|ght );..|
|00000560| 09 50 6f 6c 79 34 69 28 | 31 2c 20 34 2c 20 35 2c |.Poly4i(|1, 4, 5,|
|00000570| 20 36 2c 20 37 2c 20 27 | 42 61 63 6b 27 29 3b 0d | 6, 7, '|Back');.|
|00000580| 0a 09 4c 61 73 74 49 64 | 78 20 2b 3d 20 34 3b 0d |..LastId|x += 4;.|
|00000590| 0a 0d 0a 09 2f 2f 20 54 | 6f 70 73 20 6f 66 20 73 |....// T|ops of s|
|000005a0| 74 65 70 73 2e 0d 0a 09 | 66 6f 72 28 20 69 20 3d |teps....|for( i =|
|000005b0| 20 30 20 3b 20 69 20 3c | 20 4e 75 6d 73 74 65 70 | 0 ; i <| Numstep|
|000005c0| 73 20 3b 20 69 2b 2b 20 | 29 0d 0a 09 7b 0d 0a 09 |s ; i++ |)...{...|
|000005d0| 09 43 75 72 72 65 6e 74 | 58 20 3d 20 28 69 20 2a |.Current|X = (i *|
|000005e0| 20 53 74 65 70 4c 65 6e | 67 74 68 29 3b 0d 0a 09 | StepLen|gth);...|
|000005f0| 09 43 75 72 72 65 6e 74 | 5a 20 3d 20 28 69 20 2a |.Current|Z = (i *|
|00000600| 20 53 74 65 70 48 65 69 | 67 68 74 29 3b 0d 0a 0d | StepHei|ght);...|
|00000610| 0a 09 09 2f 2f 20 54 6f | 70 20 6f 66 20 74 68 65 |...// To|p of the|
|00000620| 20 73 74 65 70 0d 0a 09 | 09 56 65 72 74 65 78 33 | step...|.Vertex3|
|00000630| 66 28 20 43 75 72 72 65 | 6e 74 58 2c 09 09 09 09 |f( Curre|ntX,....|
|00000640| 09 43 75 72 72 65 6e 74 | 59 2c 09 09 09 09 43 75 |.Current|Y,....Cu|
|00000650| 72 72 65 6e 74 5a 20 29 | 3b 0d 0a 09 09 56 65 72 |rrentZ )|;....Ver|
|00000660| 74 65 78 33 66 28 20 43 | 75 72 72 65 6e 74 58 2c |tex3f( C|urrentX,|
|00000670| 09 09 09 09 09 43 75 72 | 72 65 6e 74 59 20 2b 20 |.....Cur|rentY + |
|00000680| 53 74 65 70 57 69 64 74 | 68 2c 09 43 75 72 72 65 |StepWidt|h,.Curre|
|00000690| 6e 74 5a 20 29 3b 0d 0a | 09 09 56 65 72 74 65 78 |ntZ );..|..Vertex|
|000006a0| 33 66 28 20 43 75 72 72 | 65 6e 74 58 20 2b 20 53 |3f( Curr|entX + S|
|000006b0| 74 65 70 4c 65 6e 67 74 | 68 2c 09 43 75 72 72 65 |tepLengt|h,.Curre|
|000006c0| 6e 74 59 20 2b 20 53 74 | 65 70 57 69 64 74 68 2c |ntY + St|epWidth,|
|000006d0| 09 43 75 72 72 65 6e 74 | 5a 20 29 3b 0d 0a 09 09 |.Current|Z );....|
|000006e0| 56 65 72 74 65 78 33 66 | 28 20 43 75 72 72 65 6e |Vertex3f|( Curren|
|000006f0| 74 58 20 2b 20 53 74 65 | 70 4c 65 6e 67 74 68 2c |tX + Ste|pLength,|
|00000700| 09 43 75 72 72 65 6e 74 | 59 2c 09 09 09 09 43 75 |.Current|Y,....Cu|
|00000710| 72 72 65 6e 74 5a 20 29 | 3b 0d 0a 0d 0a 09 09 50 |rrentZ )|;......P|
|00000720| 6f 6c 79 34 69 28 31 2c | 0d 0a 09 09 09 4c 61 73 |oly4i(1,|.....Las|
|00000730| 74 49 64 78 2b 28 69 2a | 34 29 2b 33 2c 0d 0a 09 |tIdx+(i*|4)+3,...|
|00000740| 09 09 4c 61 73 74 49 64 | 78 2b 28 69 2a 34 29 2b |..LastId|x+(i*4)+|
|00000750| 32 2c 0d 0a 09 09 09 4c | 61 73 74 49 64 78 2b 28 |2,.....L|astIdx+(|
|00000760| 69 2a 34 29 2b 31 2c 0d | 0a 09 09 09 4c 61 73 74 |i*4)+1,.|....Last|
|00000770| 49 64 78 2b 28 69 2a 34 | 29 2c 20 27 53 74 65 70 |Idx+(i*4|), 'Step|
|00000780| 27 29 3b 0d 0a 09 7d 0d | 0a 09 4c 61 73 74 49 64 |');...}.|..LastId|
|00000790| 78 20 2b 3d 20 28 4e 75 | 6d 53 74 65 70 73 2a 34 |x += (Nu|mSteps*4|
|000007a0| 29 3b 0d 0a 0d 0a 09 2f | 2f 20 46 72 6f 6e 74 73 |);...../|/ Fronts|
|000007b0| 20 6f 66 20 73 74 65 70 | 73 2e 0d 0a 09 66 6f 72 | of step|s....for|
|000007c0| 28 20 69 20 3d 20 30 20 | 3b 20 69 20 3c 20 4e 75 |( i = 0 |; i < Nu|
|000007d0| 6d 73 74 65 70 73 20 3b | 20 69 2b 2b 20 29 0d 0a |msteps ;| i++ )..|
|000007e0| 09 7b 0d 0a 09 09 43 75 | 72 72 65 6e 74 58 20 3d |.{....Cu|rrentX =|
|000007f0| 20 28 69 20 2a 20 53 74 | 65 70 4c 65 6e 67 74 68 | (i * St|epLength|
|00000800| 29 3b 0d 0a 09 09 43 75 | 72 72 65 6e 74 5a 20 3d |);....Cu|rrentZ =|
|00000810| 20 28 69 20 2a 20 53 74 | 65 70 48 65 69 67 68 74 | (i * St|epHeight|
|00000820| 29 3b 0d 0a 0d 0a 09 09 | 2f 2f 20 54 6f 70 20 6f |);......|// Top o|
|00000830| 66 20 74 68 65 20 73 74 | 65 70 0d 0a 09 09 56 65 |f the st|ep....Ve|
|00000840| 72 74 65 78 33 66 28 20 | 43 75 72 72 65 6e 74 58 |rtex3f( |CurrentX|
|00000850| 2c 09 09 43 75 72 72 65 | 6e 74 59 2c 09 09 09 09 |,..Curre|ntY,....|
|00000860| 43 75 72 72 65 6e 74 5a | 20 29 3b 0d 0a 09 09 56 |CurrentZ| );....V|
|00000870| 65 72 74 65 78 33 66 28 | 20 43 75 72 72 65 6e 74 |ertex3f(| Current|
|00000880| 58 2c 09 09 43 75 72 72 | 65 6e 74 59 2c 09 09 09 |X,..Curr|entY,...|
|00000890| 09 43 75 72 72 65 6e 74 | 5a 20 2d 20 53 74 65 70 |.Current|Z - Step|
|000008a0| 48 65 69 67 68 74 20 29 | 3b 0d 0a 09 09 56 65 72 |Height )|;....Ver|
|000008b0| 74 65 78 33 66 28 20 43 | 75 72 72 65 6e 74 58 2c |tex3f( C|urrentX,|
|000008c0| 09 09 43 75 72 72 65 6e | 74 59 20 2b 20 53 74 65 |..Curren|tY + Ste|
|000008d0| 70 57 69 64 74 68 2c 09 | 43 75 72 72 65 6e 74 5a |pWidth,.|CurrentZ|
|000008e0| 20 2d 20 53 74 65 70 48 | 65 69 67 68 74 20 29 3b | - StepH|eight );|
|000008f0| 0d 0a 09 09 56 65 72 74 | 65 78 33 66 28 20 43 75 |....Vert|ex3f( Cu|
|00000900| 72 72 65 6e 74 58 2c 09 | 09 43 75 72 72 65 6e 74 |rrentX,.|.Current|
|00000910| 59 20 2b 20 53 74 65 70 | 57 69 64 74 68 2c 09 43 |Y + Step|Width,.C|
|00000920| 75 72 72 65 6e 74 5a 20 | 29 3b 0d 0a 0d 0a 09 09 |urrentZ |);......|
|00000930| 50 6f 6c 79 34 69 28 31 | 2c 0d 0a 09 09 09 4c 61 |Poly4i(1|,.....La|
|00000940| 73 74 49 64 78 2b 28 69 | 2a 31 32 29 2b 33 2c 0d |stIdx+(i|*12)+3,.|
|00000950| 0a 09 09 09 4c 61 73 74 | 49 64 78 2b 28 69 2a 31 |....Last|Idx+(i*1|
|00000960| 32 29 2b 32 2c 0d 0a 09 | 09 09 4c 61 73 74 49 64 |2)+2,...|..LastId|
|00000970| 78 2b 28 69 2a 31 32 29 | 2b 31 2c 0d 0a 09 09 09 |x+(i*12)|+1,.....|
|00000980| 4c 61 73 74 49 64 78 2b | 28 69 2a 31 32 29 2c 20 |LastIdx+|(i*12), |
|00000990| 27 52 69 73 65 27 29 3b | 0d 0a 0d 0a 09 09 2f 2f |'Rise');|......//|
|000009a0| 20 53 69 64 65 73 20 6f | 66 20 74 68 65 20 73 74 | Sides o|f the st|
|000009b0| 65 70 0d 0a 09 09 56 65 | 72 74 65 78 33 66 28 20 |ep....Ve|rtex3f( |
|000009c0| 43 75 72 72 65 6e 74 58 | 2c 09 09 09 09 09 09 09 |CurrentX|,.......|
|000009d0| 09 43 75 72 72 65 6e 74 | 59 2c 09 09 43 75 72 72 |.Current|Y,..Curr|
|000009e0| 65 6e 74 5a 20 29 3b 0d | 0a 09 09 56 65 72 74 65 |entZ );.|...Verte|
|000009f0| 78 33 66 28 20 43 75 72 | 72 65 6e 74 58 2c 09 09 |x3f( Cur|rentX,..|
|00000a00| 09 09 09 09 09 09 43 75 | 72 72 65 6e 74 59 2c 09 |......Cu|rrentY,.|
|00000a10| 09 43 75 72 72 65 6e 74 | 5a 20 2d 20 53 74 65 70 |.Current|Z - Step|
|00000a20| 48 65 69 67 68 74 20 29 | 3b 0d 0a 09 09 56 65 72 |Height )|;....Ver|
|00000a30| 74 65 78 33 66 28 20 43 | 75 72 72 65 6e 74 58 20 |tex3f( C|urrentX |
|00000a40| 2b 20 28 53 74 65 70 4c | 65 6e 67 74 68 2a 28 4e |+ (StepL|ength*(N|
|00000a50| 75 6d 73 74 65 70 73 2d | 69 29 29 2c 09 43 75 72 |umsteps-|i)),.Cur|
|00000a60| 72 65 6e 74 59 2c 09 09 | 43 75 72 72 65 6e 74 5a |rentY,..|CurrentZ|
|00000a70| 20 2d 20 53 74 65 70 48 | 65 69 67 68 74 20 29 3b | - StepH|eight );|
|00000a80| 0d 0a 09 09 56 65 72 74 | 65 78 33 66 28 20 43 75 |....Vert|ex3f( Cu|
|00000a90| 72 72 65 6e 74 58 20 2b | 20 28 53 74 65 70 4c 65 |rrentX +| (StepLe|
|00000aa0| 6e 67 74 68 2a 28 4e 75 | 6d 73 74 65 70 73 2d 69 |ngth*(Nu|msteps-i|
|00000ab0| 29 29 2c 09 43 75 72 72 | 65 6e 74 59 2c 09 09 43 |)),.Curr|entY,..C|
|00000ac0| 75 72 72 65 6e 74 5a 20 | 29 3b 0d 0a 0d 0a 09 09 |urrentZ |);......|
|00000ad0| 50 6f 6c 79 34 69 28 31 | 2c 0d 0a 09 09 09 4c 61 |Poly4i(1|,.....La|
|00000ae0| 73 74 49 64 78 2b 28 69 | 2a 31 32 29 2b 34 2c 0d |stIdx+(i|*12)+4,.|
|00000af0| 0a 09 09 09 4c 61 73 74 | 49 64 78 2b 28 69 2a 31 |....Last|Idx+(i*1|
|00000b00| 32 29 2b 35 2c 0d 0a 09 | 09 09 4c 61 73 74 49 64 |2)+5,...|..LastId|
|00000b10| 78 2b 28 69 2a 31 32 29 | 2b 36 2c 0d 0a 09 09 09 |x+(i*12)|+6,.....|
|00000b20| 4c 61 73 74 49 64 78 2b | 28 69 2a 31 32 29 2b 37 |LastIdx+|(i*12)+7|
|00000b30| 2c 20 27 53 69 64 65 27 | 29 3b 0d 0a 0d 0a 09 09 |, 'Side'|);......|
|00000b40| 56 65 72 74 65 78 33 66 | 28 20 43 75 72 72 65 6e |Vertex3f|( Curren|
|00000b50| 74 58 2c 09 09 09 09 09 | 09 09 09 43 75 72 72 65 |tX,.....|...Curre|
|00000b60| 6e 74 59 20 2b 20 53 74 | 65 70 57 69 64 74 68 2c |ntY + St|epWidth,|
|00000b70| 09 09 43 75 72 72 65 6e | 74 5a 20 29 3b 0d 0a 09 |..Curren|tZ );...|
|00000b80| 09 56 65 72 74 65 78 33 | 66 28 20 43 75 72 72 65 |.Vertex3|f( Curre|
|00000b90| 6e 74 58 2c 09 09 09 09 | 09 09 09 09 43 75 72 72 |ntX,....|....Curr|
|00000ba0| 65 6e 74 59 20 2b 20 53 | 74 65 70 57 69 64 74 68 |entY + S|tepWidth|
|00000bb0| 2c 09 09 43 75 72 72 65 | 6e 74 5a 20 2d 20 53 74 |,..Curre|ntZ - St|
|00000bc0| 65 70 48 65 69 67 68 74 | 20 29 3b 0d 0a 09 09 56 |epHeight| );....V|
|00000bd0| 65 72 74 65 78 33 66 28 | 20 43 75 72 72 65 6e 74 |ertex3f(| Current|
|00000be0| 58 20 2b 20 28 53 74 65 | 70 4c 65 6e 67 74 68 2a |X + (Ste|pLength*|
|00000bf0| 28 4e 75 6d 73 74 65 70 | 73 2d 69 29 29 2c 09 43 |(Numstep|s-i)),.C|
|00000c00| 75 72 72 65 6e 74 59 20 | 2b 20 53 74 65 70 57 69 |urrentY |+ StepWi|
|00000c10| 64 74 68 2c 09 09 43 75 | 72 72 65 6e 74 5a 20 2d |dth,..Cu|rrentZ -|
|00000c20| 20 53 74 65 70 48 65 69 | 67 68 74 20 29 3b 0d 0a | StepHei|ght );..|
|00000c30| 09 09 56 65 72 74 65 78 | 33 66 28 20 43 75 72 72 |..Vertex|3f( Curr|
|00000c40| 65 6e 74 58 20 2b 20 28 | 53 74 65 70 4c 65 6e 67 |entX + (|StepLeng|
|00000c50| 74 68 2a 28 4e 75 6d 73 | 74 65 70 73 2d 69 29 29 |th*(Nums|teps-i))|
|00000c60| 2c 09 43 75 72 72 65 6e | 74 59 20 2b 20 53 74 65 |,.Curren|tY + Ste|
|00000c70| 70 57 69 64 74 68 2c 09 | 09 43 75 72 72 65 6e 74 |pWidth,.|.Current|
|00000c80| 5a 20 29 3b 0d 0a 0d 0a | 09 09 50 6f 6c 79 34 69 |Z );....|..Poly4i|
|00000c90| 28 31 2c 0d 0a 09 09 09 | 4c 61 73 74 49 64 78 2b |(1,.....|LastIdx+|
|00000ca0| 28 69 2a 31 32 29 2b 31 | 31 2c 0d 0a 09 09 09 4c |(i*12)+1|1,.....L|
|00000cb0| 61 73 74 49 64 78 2b 28 | 69 2a 31 32 29 2b 31 30 |astIdx+(|i*12)+10|
|00000cc0| 2c 0d 0a 09 09 09 4c 61 | 73 74 49 64 78 2b 28 69 |,.....La|stIdx+(i|
|00000cd0| 2a 31 32 29 2b 39 2c 0d | 0a 09 09 09 4c 61 73 74 |*12)+9,.|....Last|
|00000ce0| 49 64 78 2b 28 69 2a 31 | 32 29 2b 38 2c 20 27 53 |Idx+(i*1|2)+8, 'S|
|00000cf0| 69 64 65 27 29 3b 0d 0a | 09 7d 0d 0a 0d 0a 09 72 |ide');..|.}.....r|
|00000d00| 65 74 75 72 6e 20 45 6e | 64 42 72 75 73 68 28 29 |eturn En|dBrush()|
|00000d10| 3b 0d 0a 7d 0d 0a 0d 0a | 0d 0a 2f 2f 23 65 6e 64 |;..}....|..//#end|
|00000d20| 69 66 0d 0a 00 | |if... | |
+--------+-------------------------+-------------------------+--------+--------+